home *** CD-ROM | disk | FTP | other *** search
- From: billr@saab.CNA.TEK.COM (Bill Randle)
- Newsgroups: comp.sources.misc
- Subject: v17i101: calentool - day/week/month/year-at-a-glance SunView tool, Part20/23
- Message-ID: <1991Apr7.005710.28318@sparky.IMD.Sterling.COM>
- Date: 7 Apr 91 00:57:10 GMT
- Approved: kent@sparky.imd.sterling.com
- X-Checksum-Snefru: 6a29ad70 aed24a33 bfa2fe46 1014938a
-
- Submitted-by: Bill Randle <billr@saab.CNA.TEK.COM>
- Posting-number: Volume 17, Issue 101
- Archive-name: calentool/part20
-
- #! /bin/sh
- # This is a shell archive. Remove anything before this line, then unpack
- # it by saving it into a file and typing "sh file". To overwrite existing
- # files, type "sh file -c". You can also feed this as standard input via
- # unshar, or by typing "sh <file", e.g.. If this archive is complete, you
- # will see the following message at the end:
- # "End of archive 20 (of 23)."
- # Contents: INSTALL dates/CREDITS dates/usa_states dates/world mt2ct.c
- # put_aentry.c sunny.icon wevent.c
- # Wrapped by billr@saab on Thu Mar 28 08:38:32 1991
- PATH=/bin:/usr/bin:/usr/ucb ; export PATH
- if test -f 'INSTALL' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'INSTALL'\"
- else
- echo shar: Extracting \"'INSTALL'\" \(3209 characters\)
- sed "s/^X//" >'INSTALL' <<'END_OF_FILE'
- XINSTALLATION NOTES FOR CALENTOOL - Version 2.2, February 1991
- X
- X1) Edit the file "ct.h" or "Makefile" to tailor calentool to your
- X site. The only things that should really need to be "tweeked" are
- X the define statements for:
- X
- X DATELIB_DIR (directory for date/event files)
- X PRINT_CMD (default command string for sending file to PostScript printer)
- X NR_WEEKDAYS (for 5-day or 7-day week displays as default)
- X START_HOUR (default first hour to appear in appointment display)
- X END_HOUR (default last hour to appear in appointment display)
- X START_YEAR (first year to appear in year menu)
- X NR_YEARS (total number of years to appear in year menu)
- X UPDATE_RATE (default rate of clock updating)
- X MAILPROG (mailer for -m option)
- X HOUR_24 (for 12 or 24 hour time format default)
- X MON_FIRST (for Sun-Sat or Mon-Sun week format default)
- X N_NOTESLOTS (default number of note slots)
- X LANGUAGE (for printing special characters in PostScript output)
- X
- X If you want to make a smaller version of calentool, without certain
- X features, uncomment the #defines for one or more of the following
- X (all total they save about 100K bytes in the statically linked
- X stripped executable):
- X
- X NO_PRINTER (Deletes print raster and print Postscript options)
- X NO_HOLIDAYS (Deletes -h and -H options)
- X NO_SUN_MOON (Deletes Sun and Moon data frames)
- X
- X There are other options (described in comments) which should rarely require
- X modification (all options can be set within the Makefile if you prefer).
- X
- X Most of these options can be overridden with command line options -
- X see the man page.
- X
- X2) Edit the Makefile to adjust pathnames.
- X
- X3) Edit the file "riseset.h" file, entering the correct lattitude and longitude
- X for your location. These are used to determine local time offset and
- X rise/set times for the sun and moon. This can also be set in the
- X Makefile.
- X
- X4) make
- X
- X5) make install
- X
- X6) If you modified paths in the Makefile, edit the FILES section of the
- X installed manual page to reflect the correct locations of files.
- X
- XA NOTE ABOUT APPOINTMENT FILE FORMAT CONVERSION FOR USERS OF OLDER RELEASES:
- X
- X If you are using an ancient (pre 2.1) version of calentool, you will
- X need to convert any old .appointment files to the new format.
- X When calentool is first
- X started, it looks for a special header line as the first line of the
- X .appointments file. If it exists, it assumes that this is a new style file.
- X If it does not exist, calentool automatically converts your .appointments
- X file to the new style format and rewrites the file. When it does this,
- X it assumes that the appointment entries are zero-based, i.e. Jan 1st,
- X 1988 is 88 00 00. This was true for all versions of calentool prior
- X to 2.0 beta and was the default in 2.0 beta. If you are using 2.0 beta
- X compiled with OFFSET set to 1, then you *must* use the '-z' switch
- X when you invoke calentool for the first time. This tells it to convert
- X the file, but assume the input is one-based. Subsequent invocations
- X of calentool should not use the '-z' switch (although it will be
- X ignored if it finds a version 2 file header).
- X
- X Bill Randle
- X billr@saab.CNA.TEK.COM
- X February 1, 1991
- END_OF_FILE
- if test 3209 -ne `wc -c <'INSTALL'`; then
- echo shar: \"'INSTALL'\" unpacked with wrong size!
- fi
- # end of 'INSTALL'
- fi
- if test -f 'dates/CREDITS' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'dates/CREDITS'\"
- else
- echo shar: Extracting \"'dates/CREDITS'\" \(3442 characters\)
- sed "s/^X//" >'dates/CREDITS' <<'END_OF_FILE'
- X# $Header: CREDITS,v 1.2 91/03/04 11:35:44 billr Exp $
- X
- XThe dates in these files cam from many sources. Amoung them are:
- X"Today in History" - a online file of special events in world history,
- Xmaintained by Robert Heckendorn at Hewlett-Packard in Fort Collins, Colorado
- X(robert@fc.hp.com); ProLine's "Today" file, submitted by Larry Virden;
- Xand net postings by Rich Kulawiec (see below).
- XMost of the original derivation and formatting was done by R.P.C. Rodgers
- X(at UCSF). Others were formatted by Larry W. Virden and edited by me.
- XI merged the various sources to produce the final result.
- X
- XThere were many cases where the different sources showed different dates
- Xfor the same event. Where I could, I used my "World Almanac and Book of
- XFacts" (1988 ed.) to resolve the conflict. In a few cases, both dates
- Xare shown. If you spot an error or have a definitive reference for the
- Xcorrect date where multiple listings are shown, please notify me.
- X
- X Bill Randle
- X Tektronix, Inc.
- X billr@saab.CNA.TEK.COM
- X March 4, 1991
- X
- X----------
- XDate: Wed, 19 Jul 89 15:30:45 MDT
- XFrom: Rich Kulawiec <rsk@boulder.colorado.edu>
- XMessage-Id: <8907192130.AA00260@pichon>
- XTo: billr@saab.CNA.TEK.COM, rodgers@maxwell.mmwb.ucsf.edu
- XSubject: More dates for "calentool"
- XStatus: OR
- X
- X
- XI don't know about other people who submitted calendar entries, but I know that
- Xa lot of the items in "popcult" [now split in "lives" and "music"],
- Xamong others, are from a long typing session
- Xthat I put in a few years ago with a couple of my favorite rock-n-roll
- Xreferences. I'd be happier, and I imagine that the other people who typed in
- Xother dates at some length would be happier, if credit was given where due.
- X
- XThe enclosed news article lists people who contributed to the 1985 calendar
- X(which was posted to Usenet); I started with that and added 300-400 dates,
- Xmostly involving pop culture, before re-posting the whole mess later.
- X
- XCheers,
- XRich Kulawiec
- X
- X> Path: stat-l!Pucc-I:Pucc-H:CS-Mordred!pur-ee!inuxc!ihnp4!mhuxn!mhuxj!mhuxr!ulysses!allegra!bellcore!decvax!ittvax!wxlvax!rlw
- X> From: rlw@wxlvax.UUCP (Richard L. Wexelblat)
- X> Newsgroups: net.sources
- X> Subject: 1985.calendar.events
- X> Message-ID: <374@wxlvax.UUCP>
- X> Date: Tue, 15-Jan-85 08:41:50 EST
- X> Date-Received: Wed, 16-Jan-85 19:43:00 EST
- X> Lines: 1354
- X>
- X> Here are a few items to initialize your 1985 calendar.
- X>
- X> They are not all in the same format due to the various sources from
- X> which they came and my own limited time for editing. I've tried to
- X> mark items whose annual dates vary (Easter, e.g.) so that updating for
- X> next year will be easier but I know I missed many such. Some of these
- X> are a bit off the wall and may well be put-ons from last year's
- X> correspondents. Such are to be taken as exercises for the reader.
- X>
- X> These items are taken from:
- X> History of Programming Languages
- X> Old Farmer's (1984) Almanac
- X> The 1984 Great computer calendar
- X> The History of Music to the Death of Schubert
- X> My own misc. store of useful or useless facts
- X>
- X> Additions and corrections were sent last year by:
- X> decvax!seismo!rochester!ritcv!ccieng5!ccieng6!wla
- X> decvax!sii!mem
- X> ittvax!bunker!dick
- X> ittvax!decvax!bellcore!yquem!psl
- X> ittvax!decvax!harpo!eagle!mhuxl!ihnp4!ihuxw!pector
- X> seismo!rochester!rocksvax!sunybcs!colonel
- X>
- X> (and others whose identifications I lost (Sorry!))
- X>
- X> Please send corrections, additions, etc to:
- X>
- X> -- Dick Wexelblat (...decvax!ittvax!wxlvax!rlw)
- X
- END_OF_FILE
- if test 3442 -ne `wc -c <'dates/CREDITS'`; then
- echo shar: \"'dates/CREDITS'\" unpacked with wrong size!
- fi
- # end of 'dates/CREDITS'
- fi
- if test -f 'dates/usa_states' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'dates/usa_states'\"
- else
- echo shar: Extracting \"'dates/usa_states'\" \(3533 characters\)
- sed "s/^X//" >'dates/usa_states' <<'END_OF_FILE'
- X# CalenTool V2.2 - nflag=1 range=1,12 - DO NOT REMOVE THIS LINE
- X# $Header: usa_states,v 2.3 91/03/07 16:21:39 billr Exp $
- X# Special days file for calentool (rel 2.1); modified from network posting by
- X# RPC Rodgers, UCSF, Nov. 1988
- X# US state holidays fixed by exact date or as nth mday of month
- X#
- X** 01 06 99 99 00 Three Kings' Day (PR)
- X** 01 11 99 99 00 De Hostos' Birthday (PR)
- X** 01 18 99 99 00 Southward Grey whale migration (CA)
- X** 01 19 99 99 00 Confederate Heroes Day (TX)
- X** 01 Mo 99 99 00 [3] Lee-Jackson Day (VA)
- X** 01 Mo 99 99 00 [3] Robert E. Lee's Birthday (AL & MS)
- X** 02 12 99 99 00 Georgia Day (GA)
- X** 03 02 99 99 00 Texas Independence day (TX)
- X** 03 04 99 99 00 Vermont Admission Day (14th state, 1791)
- X** 03 15 99 99 00 Buzzards return to Hinckley, Ohio (OH)
- X** 03 17 99 99 00 Evacuation Day (Suffolk County, MA)
- X** 03 19 99 99 00 The day the swallows return to San Juan Capistrano (CA)
- X** 03 20 99 99 00 Youth Day (OK)
- X** 03 22 99 99 00 Abolition Day (PR)
- X** 03 25 99 99 00 Maryland Day (MD)
- X** 03 26 99 99 00 Prince Jonah Kuhio Kalanianaole Day (HI)
- X** 03 Mo 99 99 00 [L] Seward's Day (AK)
- X** 04 02 99 99 00 Pascua Florida Day (FL)
- X** 04 07 99 99 00 Alewives run (Cape Cod, MA)
- X** 04 07 99 99 00 Verrazano Day (NY)
- X** 04 12 99 99 00 Thomas Jefferson's Birthday (AL)
- X** 04 16 99 99 00 Jose de Diego's Birthday (PR)
- X** 04 21 99 99 00 San Jacinto Day (TX)
- X** 04 22 99 99 00 Arbor Day (NE & DE)
- X** 04 22 99 99 00 Oklahoma Day (OK)
- X** 04 26 99 99 00 Confederate Memorial Day (FL & GA)
- X** 04 Mo 99 99 00 [3] Patriot's Day (ME & MA)
- X** 04 Mo 99 99 00 [L] Arbor Day (WY)
- X** 04 Mo 99 99 00 [L] Confederate Memorial Day (AL & MS)
- X** 05 04 99 99 00 Rhode Island Independence Day
- X** 05 08 99 99 00 Harry S. Truman's Birthday (MO)
- X** 05 10 99 99 00 Confederate Memorial Day (SC)
- X** 05 11 99 99 00 Minnesota Day (MN)
- X** 05 20 99 99 00 Mecklenburg Independence Day (NC)
- X** 05 25 99 99 00 Memorial Day (NM & PR)
- X** 05 29 99 99 00 Jefferson Davis's Birthday (MS)
- X** 05 Mo 99 99 00 [3] Memorial Day (MI)
- X** 06 03 99 99 00 Confederate Memorial Day (KY & LA)
- X** 06 03 99 99 00 Jefferson Davis's Birthday (FL, GA, KY, & SC)
- X** 06 09 99 99 00 Senior Citizen's Day (OK)
- X** 06 11 99 99 00 King Kamehameha I Day (HI)
- X** 06 17 99 99 00 Bunker Hill Day (Suffolk County, MA)
- X** 06 19 99 99 00 Emancipation Day (TX)
- X** 06 20 99 99 00 West Virginia Day (WV)
- X** 06 Mo 99 99 00 [1] Jefferson Davis's Birthday (AL & MS)
- X** 07 16 99 99 00 Bennington Battle Day (VT)
- X** 07 17 99 99 00 Munoz Rivera's Birthday (PR)
- X** 07 24 99 99 00 Pioneer Day (UT)
- X** 07 25 99 99 00 Constitution Day (PR)
- X** 07 27 99 99 00 Barbosa's Birthday (PR)
- X** 07 29 99 99 00 Rain Day (Waynesburg, PA)
- X** 08 03 99 99 00 Ernie Pyle Day (NM)
- X** 08 14 99 99 00 Victory Day (RI)
- X** 08 21 99 99 00 Admission Day (HI)
- X** 08 26 99 99 00 Susan B. Anthony Day (MA)
- X** 08 30 99 99 00 Huey P. Long Day (LA)
- X** 08 Fr 99 99 00 [3] Admission Day (HI, 1984)
- X** 09 04 99 99 00 Los Angeles Day
- X** 09 09 99 99 00 Admission Day (CA)
- X** 09 12 99 99 00 Defender's Day (MD)
- X** 09 16 99 99 00 Cherokee Strip Day (OK)
- X** 09 22 99 99 00 Autumn Harvest Festival (Wheaton, IL)
- X** 09 23 99 99 00 Grito de Lares (PR)
- X** 10 08 99 99 00 Discoverer's Day (HI)
- X** 10 10 99 99 00 Oklahoma Historical Day (OK)
- X** 10 18 99 99 00 Alaska Day (AK)
- X** 10 30 99 99 00 Devil's Night (MI)
- X** 10 31 99 99 00 Nevada Day (NV)
- X** 11 02 99 99 00 Admission Day (ND, SD)
- X** 11 16 99 99 00 Oklahoma Heritage Week (OK)
- X** 11 19 99 99 00 Discovery Day (PR)
- X** 12 07 99 99 00 Delaware Day (DE)
- X** 12 10 99 99 00 Wyoming Day (WY)
- END_OF_FILE
- if test 3533 -ne `wc -c <'dates/usa_states'`; then
- echo shar: \"'dates/usa_states'\" unpacked with wrong size!
- fi
- # end of 'dates/usa_states'
- fi
- if test -f 'dates/world' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'dates/world'\"
- else
- echo shar: Extracting \"'dates/world'\" \(27588 characters\)
- sed "s/^X//" >'dates/world' <<'END_OF_FILE'
- X# CalenTool V2.2 - nflag=1 range=1,12 - DO NOT REMOVE THIS LINE
- X# $Header: world,v 2.6 91/03/07 16:21:42 billr Exp $
- X# Special days file for calentool (rel 2.1); modified from network posting by
- X# RPC Rodgers, UCSF, Nov. 1988
- X# Various holidays and special days commemorated around the world
- X# (non-US and Canadian)
- X#
- X** 01 01 99 99 00 Anniversary of the Triumph of the Revolution (Cuba)
- X** 01 01 99 99 00 Shi ho hai, Worhsip of the Four Directions (Japan)
- X** 01 01 99 99 00 Independence Day (Haiti, Sudan)
- X** 01 01 99 99 00 Universal Fraternity Day (Mozambique)
- X** 01 01 99 99 00 Neujahr (Germany)
- X** 01 02 99 99 00 Ancestry Day (Haiti)
- X** 01 02 99 99 00 St. Berchtold's Day (Switzerland)
- X** 01 03 99 99 00 New Year's Holiday (Scotland)
- X** 01 03 99 99 00 Genshi sai, Second Offical New Year Holiday (Japan)
- X** 01 03 99 99 00 Revolution Day (Upper Volta)
- X** 01 04 99 99 00 Independence Day (Burma)
- X** 01 04 99 99 00 Martyrs Day (Zaire)
- X** 01 05 99 99 00 Twelfth-night
- X** 01 05 99 99 00 Shinnen Enkai, Third Official New Year Holiday (Japan)
- X** 01 06 99 99 00 Children's Day (Uruguay)
- X** 01 06 99 99 00 Epiphany (Twelfth-day)
- X** 01 06 99 99 00 Heilige drei Koenige (Germany)
- X** 01 07 99 99 00 Christmas (Ethiopia)
- X** 01 07 99 99 00 Nanakusa, Seven Grasses Festival ("Five Festivals", Japan)
- X** 01 07 99 99 00 Pioneer's Day (Liberia)
- X** 01 09 99 99 00 Day of the Martyrs (Panama)
- X** 01 11 99 99 00 Anniversary of Peoples Republic of Albania
- X** 01 11 99 99 00 Armed Forces Day (Liberia)
- X** 01 11 99 99 00 Prithvi Jayanti (Nepal)
- X** 01 12 99 99 00 Zanzibar Revolution Day (Tanzania)
- X** 01 13 99 99 00 National Liberation Day (Togo)
- X** 01 15 99 99 00 Adults Day (Japan)
- X** 01 15 99 99 00 Arbor Day (Jordan)
- X** 01 16 99 99 00 Martyrs Day (Benin)
- X** 01 18 99 99 00 Revolution Day (Tunisia)
- X** 01 19 99 99 00 Ethopian Epiphany (Ethiopia)
- X** 01 19 99 99 00 Nameday of Archbishop Makarios (Cyprus)
- X** 01 20 99 99 00 Army Day (Mali)
- X** 01 20 99 99 00 Grandmother's day, young girls and boys are dunked in water for good health (Bulgaria)
- X** 01 20 99 99 00 National Heroes Day (Guinea-Bissau)
- X** 01 20 99 99 00 St. Agnes Eve (Ah, bitter chill it was...)
- X** 01 21 99 99 00 Our Lady of Altagracia (Dominican Republic)
- X** 01 23 99 99 00 Feast of St. Ildefonsus
- X** 01 24 99 99 00 Economic Liberation Day (Togo)
- X** 01 25 99 99 00 Burns Night (Scotland)
- X** 01 26 99 99 00 Republic Day (India)
- X** 01 26 99 99 00 Australia Day; observed on nearest Monday (Australia)
- X** 02 01 99 99 00 Chinese New Year Holiday (3 days) (Taiwan)
- X** 02 03 99 99 00 Setsubun, Change of Season or "Bean Throwing Night" (Japan)
- X** 02 04 99 99 00 Independence Commemoration Day (Sri Lanka)
- X** 02 05 99 99 00 Constitution Day (Mexico)
- X** 02 06 99 99 00 New Zealand Day
- X** 02 07 99 99 00 Independence Day (Grenada)
- X** 02 08 99 99 00 Anniversary, 1963 Revolution (Iraq)
- X** 02 09 99 99 00 St. Maron's Day (Lebanon)
- X** 02 11 99 99 00 Kigen Setsu, National Foundation Day (Japan)
- X** 02 12 99 99 00 Pyidaungsa Day (Burma)
- X** 02 16 99 99 00 Makha Bucha Day (Thailand)
- X** 02 18 99 99 00 Democracy Day (Nepal)
- X** 02 18 99 99 00 Independence Day (The Gambia)
- X** 02 18 99 99 00 National Bun Day (Iceland)
- X** 02 23 99 99 00 Republic Day (Guyana)
- X** 02 25 99 99 00 National Day (Kuwait)
- X** 02 27 99 99 00 Independence Day (Dominican Republic)
- X** 03 01 99 99 00 Samil Independence Movement Day (South Korea)
- X** 03 01 99 99 00 St. David's day (Patron saint of Wales)
- X** 03 02 99 99 00 Peasants Day (Burma)
- X** 03 02 99 99 00 Victory of Adowa (Ethiopia)
- X** 03 03 99 99 00 Hinamatsuri, Girl's Doll Festival ("Five Festivals", Japan)
- X** 03 03 99 99 00 Throne Day (Morocco)
- X** 03 05 99 99 00 Independence Day (Equatorial Guinea)
- X** 03 06 99 99 00 Independence Day (Ghana)
- X** 03 06 99 99 00 Chikyu Setsu, Empress's Birthday (Japan)
- X** 03 08 99 99 00 International Women's Day (U.S.S.R.)
- X** 03 08 99 99 00 Syrian National Day (Libyan Arab Republic)
- X** 03 08 99 99 00 Women's Day (Guinea-Bissau, Taiwan, Yemen Democratic Republic)
- X** 03 08 99 99 00 Youth Day (Zambia)
- X** 03 09 99 99 00 Decoration Day (Liberia)
- X** 03 09 99 99 00 Falgun Purnima Day (Nepal)
- X** 03 10 99 99 00 Riku gun Kenenbi, Japanese Army Commemoration Day (Japan)
- X** 03 10 99 99 00 Labor Day (South Korea)
- X** 03 12 99 99 00 Commonwealth Day (Swaziland)
- X** 03 12 99 99 00 Independence Day (Mauritius)
- X** 03 12 99 99 00 Moshoeshoe's Birthday (Lesotho)
- X** 03 12 99 99 00 Renovation Day (Gabon)
- X** 03 13 99 99 00 National Day (Grenada)
- X** 03 15 99 99 00 J.J. Robert's Birthday (Liberia)
- X** 03 19 99 99 00 St. Joseph's Day (Colombia, Costa Rica, Holy See, Liechtenstein, San Marino, Spain, Venezuela)
- X** 03 19 99 99 00 Tree Planting Day (Lestho)
- X** 03 20 99 99 00 Independence Day (Tunisia)
- X** 03 21 99 99 00 Afghan New Year (Afghanistan)
- X** 03 21 99 99 00 Shunki Korei Sai, Spring Equinox Festival for Imperial Ancestors (Japan)
- X** 03 21 99 99 00 Juarez' Birthday (Mexico)
- X** 03 23 99 99 00 Pakistan Day (Pakistan)
- X** 03 25 99 99 00 Feast of the Annunciation of the Blessed Virgin Mary, aka Our Lady's Day or Lady Day and in England as Quarter Day
- X** 03 25 99 99 00 Greek Independence Day (Cyprus)
- X** 03 25 99 99 00 National Holiday (Greece)
- X** 03 26 99 99 00 Independence Day (Bangladesh)
- X** 03 27 99 99 00 Armed Forces Day (Burma)
- X** 03 29 99 99 00 Memorial Day (Madagascar)
- X** 03 31 99 99 00 National Day (Malta)
- X** 04 01 99 99 00 Beginning of the financial year (Britan)
- X** 04 01 99 99 00 Youth Day (Benin)
- X** 04 02 99 99 00 Malvinas Day (Argentina)
- X** 04 03 99 99 00 Jimmu Tenno Sai, Demise of the First Emperor (Japan)
- X** 04 04 99 99 00 Ching Ming Festival (Hong Kong)
- X** 04 04 99 99 00 Liberation Day (Hungary)
- X** 04 04 99 99 00 National Day (Senegal)
- X** 04 05 99 99 00 Arbor Day (South Korea)
- X** 04 05 99 99 00 British income tax is due
- X** 04 05 99 99 00 Tomb Sweeping Day (Taiwan)
- X** 04 06 99 99 00 Chakri Memorial Day (Thailand)
- X** 04 06 99 99 00 Victory Day (Ethiopia)
- X** 04 08 99 99 00 Fast & Prayer Day (Liberia)
- X** 04 08 99 99 00 Kambutsue, celebration of Buddha's birthday (Japan)
- X** 04 09 99 99 00 Martyrs Day (Tunisia)
- X** 04 11 99 99 00 National Heroes Day (Costa Rica)
- X** 04 13 99 99 00 Laotian New Year (3 days, Laos)
- X** 04 13 99 99 00 National Day (Chad)
- X** 04 13 99 99 00 Songkron Day (Thailand)
- X** 04 14 99 99 00 Day of the Americas (Honduras)
- X** 04 15 99 99 00 Bengali New Year (Bangladesh)
- X** 04 15 99 99 00 Swallow Day, the day swallows are said to return (England)
- X** 04 16 99 99 00 Holy Week (5 days) (Venezuela)
- X** 04 16 99 99 00 Tourist Week (5 days) (Uruguay)
- X** 04 17 99 99 00 Burmese New Year (Burma)
- X** 04 18 99 99 00 Independence Day (Chile, Zimbabwe)
- X** 04 19 99 99 00 Declaration of Independence (Venezuela)
- X** 04 19 99 99 00 Landing of the "33" (Uruguay)
- X** 04 19 99 99 00 Republic Day (Sierra Leone)
- X** 04 21 99 99 00 Tiradentes (Brazil)
- X** 04 22 99 99 00 Sniff the breeze day, celebrated by picnicking near the Nile and inhaling breaths of the departing spring air (Egypt)
- X** 04 23 99 99 00 Independence Day (Turkey)
- X** 04 23 99 99 00 St. George's Day - patron saint of England
- X** 04 24 99 99 00 Victory Day (Togo)
- X** 04 25 99 99 00 Anniversary of the Revolution (Portugal)
- X** 04 25 99 99 00 Anzac Day (Australia, New Zealand, Tonga, Western Samoa)
- X** 04 25 99 99 00 Liberation Day (Italy)
- X** 04 25 99 99 00 National Flag Day (Swaziland)
- X** 04 26 99 99 00 Union Day (Tanzania)
- X** 04 27 99 99 00 Independence Day (Togo)
- X** 04 29 99 99 00 Tencho Setsu, Emperor's Birthday (Japan)
- X** 04 30 99 99 00 Sho Konsai, Commemoration for the Departed (Japan)
- X** 04 30 99 99 00 Queen's Birthday (Netherlands, Netherlands Antilles)
- X** 04 30 99 99 00 The Workers Day (Uruguay)
- X** 05 01 99 99 00 Labor Day (many places)
- X** 05 01 99 00 00 Tag der Arbeit (Germany)
- X** 05 02 99 99 00 Constitution Day (Japan)
- X** 05 02 99 99 00 Memorial Day for the Emperor Shomu (Japan)
- X** 05 02 99 99 00 King's Birthday (Lesotho)
- X** 05 05 99 99 00 Children's Day (South Korea)
- X** 05 05 99 99 00 Cinco de Mayo Fiesta (Mexico)
- X** 05 05 99 99 00 Tango-no-sekku, Boy's Festival ("Five Festivals", Japan)
- X** 05 05 99 99 00 Coronation Day (Thailand)
- X** 05 05 99 99 00 Independence Day/Battle of Puebla (Mexico)
- X** 05 05 99 99 00 Liberation Day (Netherlands)
- X** 05 06 99 99 00 Bank Holiday (UK)
- X** 05 06 99 99 00 Bataan Day (Philippines)
- X** 05 08 99 99 00 Buddha's Birthday (South Korea)
- X** 05 08 99 99 00 Elections for National Assembly (Philippines)
- X** 05 09 99 99 00 Liberation Day (Czechoslovakia)
- X** 05 09 99 99 00 Victory Day (Poland, U.S.S.R.)
- X** 05 10 99 99 00 Mothers Day (Guatamala)
- X** 05 14 99 99 00 Anniversary of Founding of Guinean Democratic Party (Guinea)
- X** 05 14 99 99 00 Buddhist Holiday (Waisak 2528) (Indonesia)
- X** 05 14 99 99 00 Independence Day (2 days) (Paraguay)
- X** 05 14 99 99 00 Unification Day (Liberia)
- X** 05 15 99 99 00 Kamuzu Day (Malawi)
- X** 05 15 99 99 00 Vesak Day (Singapore, Malaysia)
- X** 05 15 99 99 00 Visakha Bucha Day (Thailand)
- X** 05 16 99 99 00 Discovery Day (Cayman Islands)
- X** 05 17 99 99 00 Constitution Day (Nauru, Norway)
- X** 05 18 99 99 00 Battle of Las Piedras (Uruguay)
- X** 05 18 99 99 00 Flag Day (Haiti)
- X** 05 18 99 99 00 Prayer Day (Denmark)
- X** 05 19 99 99 00 Youth & Sports Day (Turkey)
- X** 05 20 99 99 00 National Day (Cameroon)
- X** 05 21 99 99 00 Battle of Iquique (Chile)
- X** 05 22 99 99 00 National Heroes Day (Sri Lanka)
- X** 05 23 99 99 00 Commonwealth Day (Jamaica, Belize)
- X** 05 23 99 99 00 National Labor Day (Jamaica)
- X** 05 24 99 99 00 Battle of Pinchincha (Ecuador)
- X** 05 24 99 99 00 Bermuda Day (Bermuda)
- X** 05 24 99 99 00 British Empire Day
- X** 05 24 99 99 00 Day of Slav Letters (Bulgaria)
- X** 05 25 99 99 00 African Freedom Day (Zimbabwe)
- X** 05 25 99 99 00 African Liberation Day (Chad, Mauritania, Zambia)
- X** 05 25 99 99 00 Anniversary of Revolution of 1810 (Argentina)
- X** 05 25 99 99 00 Independence Day (Jordan)
- X** 05 25 99 99 00 Revolution in Sudan (Libyan Arab Republic)
- X** 05 27 99 99 00 Kaigun Kinenbi, Navy Commemoration Day (Japan)
- X** 05 27 99 99 00 Bank Holiday (UK)
- X** 05 28 99 99 00 Mothers Day (Central African Republic)
- X** 05 31 99 99 00 Pya Martyrs Day (Togo)
- X** 05 31 99 99 00 Republic Day (South Africa)
- X** 06 01 99 99 00 Independence Days (3 days) (Western Samoa)
- X** 06 01 99 99 00 Madaraka Day (Kenya)
- X** 06 01 99 99 00 Victory Day (Tunisia)
- X** 06 02 99 99 00 Corpus Christi (Paraguay)
- X** 06 02 99 99 00 Republic (Constitution) Day (Italy)
- X** 06 03 99 99 00 Bank Holiday (Rep. of Ireland)
- X** 06 03 99 99 00 Labor Day (Bahamas)
- X** 06 04 99 99 00 Dragon Boat Festival (Hong Kong, Taiwan)
- X** 06 04 99 99 00 Emancipation Day (Tonga)
- X** 06 04 99 99 00 Queen's Birthday (New Zealand)
- X** 06 05 99 99 00 Constitution Day (Denmark)
- X** 06 05 99 99 00 Liberation Day (Seychelles)
- X** 06 06 99 99 00 His Majesty, Yang Di-Pertuan Agong's Birthday (Malaysia)
- X** 06 06 99 99 00 Memorial Day (South Korea)
- X** 06 10 99 99 00 Camoes Day (Portugal)
- X** 06 11 99 99 00 Queen's Birthday (celebrated) (UK)
- X** 06 12 99 99 00 Independence Day (Philippines)
- X** 06 12 99 99 00 Peace with Bolivia (Paraguay)
- X** 06 13 99 99 00 Corrective Movement (Yemen Arab Republic)
- X** 06 16 99 99 00 Bloomsday - Anniversary of Dublin events, 1904 (Ireland)
- X** 06 17 99 99 00 Independence Day (Iceland)
- X** 06 17 99 99 00 National Day [Tag der deutschen Einheit] (Federal Republic of Germany)
- X** 06 18 99 99 00 Evacuation Day (Egypt)
- X** 06 18 99 99 00 Queen's Birthday (Fiji)
- X** 06 19 99 99 00 Artigas Birthday (Uruguay)
- X** 06 19 99 99 00 Labor Day (Trinidad, Tobago)
- X** 06 19 99 99 00 Revolution Day (Algeria)
- X** 06 20 99 99 00 Flag Day (Argentina)
- X** 06 22 99 99 00 Corrective Movement (Yemen Democratic Republic)
- X** 06 22 99 99 00 Midsummer Eve (Finland, Sweden)
- X** 06 22 99 99 00 National Sovereignty Day (Haiti)
- X** 06 23 99 99 00 National Holiday (Luxembourg)
- X** 06 24 99 99 00 Battle of Carabobob (Venezuela)
- X** 06 24 99 99 00 Fisherman's Day (Madagascar, Mozambique, Somalia)
- X** 06 24 99 99 00 Kings Day (Spain)
- X** 06 24 99 99 00 Midsummer Day (Europe)
- X** 06 24 99 99 00 Peasants Day (Peru)
- X** 06 24 99 99 00 St. Jean-Baptiste Day (Quebec)
- X** 06 28 99 99 00 Mothers Day (Central African Republic)
- X** 06 29 99 99 00 Independence Day (Seychelles)
- X** 06 29 99 99 00 Last Day of Ramadan* (Algeria, Oman)
- X** 06 30 99 99 00 Day of the Army (Guatemala)
- X** 06 30 99 99 00 Independence Day (Zaire)
- X** 07 01 99 99 00 Eid-Ul-Fitr* (2 days) (Pakistan)
- X** 07 01 99 99 00 Freedom Day (Suriname)
- X** 07 01 99 99 00 Independence Day (Burundi)
- X** 07 01 99 99 00 National Day (Rwamda)
- X** 07 01 99 99 00 Republic Day (Ghana)
- X** 07 01 99 99 00 Union of the Somalia Republic (Somalia)
- X** 07 02 99 99 00 National Day (Kiribati)
- X** 07 04 99 99 00 Caribbean Day (Guyana)
- X** 07 04 99 99 00 Constitution Day (Cayman Islands)
- X** 07 04 99 99 00 Family Day (Lesotho)
- X** 07 04 99 99 00 Heroes Day (Zambia)
- X** 07 04 99 99 00 Kadooment Day (Barbados)
- X** 07 04 99 99 00 Philippine-American Friendship Day (Philippines)
- X** 07 04 99 99 00 Warriors Day (2 days) (Yugoslavia)
- X** 07 05 99 99 00 Day of Peace & Unity (Rwanda)
- X** 07 05 99 99 00 Independence Day (Algeria, Venezuela)
- X** 07 07 99 99 00 Anniversary of the P.U.N. (Equatorial Guinea)
- X** 07 07 99 99 00 Tanabata, Weaver's Festival ("Five Festivals", Japan)
- X** 07 07 99 99 00 National Day (Malawi)
- X** 07 07 99 99 00 Saba Saba Day (Tanzania)
- X** 07 09 99 99 00 Independence Day (Argentina)
- X** 07 10 99 99 00 Independence Day (Bahamas)
- X** 07 11 99 99 00 National Holiday (Mongolian People's Republic)
- X** 07 12 99 99 00 Battle of Boyne celebrated (Northern Ireland)
- X** 07 12 99 99 00 The Twelfth (Northern Ireland)
- X** 07 13 99 99 00 Buddhist Lent (Thailand)
- X** 07 13 99 99 00 Start of the Bon Festival (Japan)
- X** 07 14 99 99 00 Anniversary of the Revolution (Iraq)
- X** 07 14 99 99 00 Bastille Day (France)
- X** 07 14 99 99 00 National Holiday (Monaco)
- X** 07 15 99 99 00 St. Swithin's Day
- X** 07 16 99 99 00 Presidents Day (Botswanna)
- X** 07 17 99 99 00 Constitution Day (South Korea)
- X** 07 17 99 99 00 July Revolution (Iraq)
- X** 07 17 99 99 00 Munoz Rivera's Birthday (Puerto Rico)
- X** 07 17 99 99 00 Public Holiday (Botswanna)
- X** 07 18 99 99 00 Constitution Day (Uruguay)
- X** 07 18 99 99 00 Liberation Day (Nicaragua)
- X** 07 18 99 99 00 National Day (Spain)
- X** 07 19 99 99 00 Martyrs Day (Burma)
- X** 07 20 99 99 00 Independence Day (Colombia)
- X** 07 21 99 99 00 National Holiday (Belgium)
- X** 07 22 99 99 00 King's Birthday (Swaziland)
- X** 07 22 99 99 00 National Day (Poland)
- X** 07 23 99 99 00 Anniversary of the Revolution (Egypt)
- X** 07 23 99 99 00 Eqyptian National Day (Syrian Arab Republic)
- X** 07 23 99 99 00 Remembrance Day (Papua, New Guinea)
- X** 07 24 99 99 00 Simon Bolivar's Day (Ecuador, Venezuela)
- X** 07 25 99 99 00 Grotto Day (England)
- X** 07 25 99 99 00 National Rebellion Day (3 days) (Cuba)
- X** 07 25 99 99 00 Republic Day (Tunisia)
- X** 07 25 99 99 00 St. James, Patron Saint (Spain)
- X** 07 26 99 99 00 Independence Day (Liberia)
- X** 07 26 99 99 00 National Day (Maldives)
- X** 07 27 99 99 00 Barbosa's Birthday (Puerto Rico)
- X** 07 28 99 99 00 Independence Days (2 days) (Peru)
- X** 07 29 99 99 00 Hamburg feast of cherries (Germany)
- X** 07 29 99 99 00 Olsok Eve, commemorating Viking King St. Olav (Norway)
- X** 07 31 99 99 00 Revolution Day (Congo)
- X** 08 01 99 99 00 Discovery Day (Trinidad, Tobogo)
- X** 08 01 99 99 00 Emancipation Day (Granada)
- X** 08 01 99 99 00 Founding of Asuncion (Paraguay)
- X** 08 01 99 99 00 Freedom Day (Guyana)
- X** 08 01 99 99 00 Confederation Day (Switzerland)
- X** 08 01 99 99 00 National Holidays (5 days) (El Salvador)
- X** 08 01 99 99 00 Parent's Day (Zaire)
- X** 08 02 99 99 00 Our Lady of Los Angeles (Costa Rica)
- X** 08 03 99 99 00 Independence Day (Jamaica, Niger)
- X** 08 03 99 99 00 Massacre du Pidjiguiti (Guinea-Bissau)
- X** 08 03 99 99 00 Memorial Day of Archbishop Makarios (Cyprus)
- X** 08 04 99 99 00 Freedom Day (Guyana)
- X** 08 05 99 99 00 Bank Holiday (Scotland, Northern Ireland)
- X** 08 06 99 99 00 Bank Holiday (Australia, Fiji, Iceland)
- X** 08 06 99 99 00 Caricom (Barbados)
- X** 08 06 99 99 00 Emancipation Day (Bahamas)
- X** 08 06 99 99 00 Hiroshima Day (Japan)
- X** 08 06 99 99 00 Independence Day (Bolivia)
- X** 08 07 99 99 00 Battle of Boyaca (Colombia)
- X** 08 09 99 99 00 National Day (Singapore)
- X** 08 10 99 99 00 Independence Day (Ecuador)
- X** 08 11 99 99 00 Heroes Day (2 days) (Zimbabwe)
- X** 08 11 99 99 00 Independence Day (Chad)
- X** 08 11 99 99 00 King Hussein's Accession to Throne (Jordan)
- X** 08 12 99 99 00 Queen's Birthday (Thailand)
- X** 08 13 99 99 00 Proclamation of Independence (Central African Republic)
- X** 08 13 99 99 00 Women's Day (Tunisia)
- X** 08 14 99 99 00 Independence Day (Pakistan)
- X** 08 14 99 99 00 Waddi Dhahab (Morocco)
- X** 08 15 99 99 00 Founding of Ascuncion (Paraguay)
- X** 08 15 99 99 00 Independence Day (Congo, India)
- X** 08 15 99 99 00 Liberation Day (South Korea)
- X** 08 15 99 99 00 Santa Maria (Malta)
- X** 08 16 99 99 00 Independence Days (3 days, Gabon)
- X** 08 16 99 99 00 Restoration Day (Dominican Republic)
- X** 08 17 99 99 00 Anniversary of Death of General San Martin (Argentina)
- X** 08 17 99 99 00 Independence Day (Indonesia)
- X** 08 19 99 99 00 Independence Day (Afghanistan)
- X** 08 20 99 99 00 Constitution Day (Hungary)
- X** 08 23 99 99 00 Liberation Days (2 days) (Romania)
- X** 08 24 99 99 00 National Flag Day (Liberia)
- X** 08 25 99 99 00 Constitution Day (Paragual)
- X** 08 25 99 99 00 Independence Day (Uruguay)
- X** 08 26 99 99 00 Bank Holiday (England, Wales)
- X** 08 27 99 99 00 Liberation Day (Hong Kong)
- X** 08 28 99 99 00 Heroes Day (Philippines)
- X** 08 30 99 99 00 St. Rose of Lima (Peru)
- X** 08 30 99 99 00 Victory Day (Turkey)
- X** 08 31 99 99 00 Independence Day (Trinidad, Tobago)
- X** 08 31 99 99 00 National Day (Malaysia)
- X** 08 31 99 99 00 Pashtoonian Day (Afghanistan)
- X** 09 01 99 99 00 Army Day (Chile)
- X** 09 03 99 99 00 Anniversary of Founding of the Republic (San Marino)
- X** 09 03 99 99 00 Independence Day (Qatar)
- X** 09 03 99 99 00 Memorial Day (Tunisia)
- X** 09 06 99 99 00 Defense of Pakistan Day (Pakistan)
- X** 09 06 99 99 00 Settlers Day (South Africa)
- X** 09 06 99 99 00 Somhlolo (Swaziland)
- X** 09 07 99 99 00 Independence Day (Brazil)
- X** 09 09 99 99 00 Anniversary of Socialist Revolution (2 days, Bulgaria)
- X** 09 09 99 99 00 Choyo, Chrysanthemum Festival ("Five Festivals", Japan)
- X** 09 09 99 99 00 National Day (North Korea)
- X** 09 10 99 99 00 Korean Thanksgiving Day (Chusuk) (South Korea)
- X** 09 10 99 99 00 Moon Festival (Taiwan)
- X** 09 10 99 99 00 National Day (Belize)
- X** 09 11 99 99 00 Ethiopian New Year (Ethiopia)
- X** 09 11 99 99 00 National Holiday (Chile)
- X** 09 12 99 99 00 Amilcar Cabral's Birthday (Guinea-Bissau)
- X** 09 12 99 99 00 Revolution Day (Ethiopia)
- X** 09 14 99 99 00 Battle of San Jacinto (Nicaragua)
- X** 09 15 99 99 00 Foundation of Panama (Panama)
- X** 09 15 99 99 00 Independence Day (Costa Rica, El Salvador, Guatamala, Honduras and Nicaragua)
- X** 09 15 99 99 00 Respect for the Aged Day (Japan)
- X** 09 16 99 99 00 Independence Day (Mexico, Papua, New Guinea)
- X** 09 17 99 99 00 National Heroes Day (Angola)
- X** 09 18 99 99 00 Independence Day (Chile)
- X** 09 18 99 99 00 Victory of Uprona (Burundi)
- X** 09 19 99 99 00 Army Day (Chile)
- X** 09 21 99 99 00 Independence Day (Belize)
- X** 09 22 99 99 00 Independence Day (Mali)
- X** 09 22 99 99 00 National Sovereignty Day (Haiti)
- X** 09 23 99 99 00 Shuki Korei Sai, Autumnal Equinox Festival for Imperial Ancestors (Japan)
- X** 09 24 99 99 00 Anniversary of Third Republic (Ghana)
- X** 09 24 99 99 00 Independence Day (Guinea-Bissau)
- X** 09 24 99 99 00 National Day (Saudi Arabia)
- X** 09 24 99 99 00 Our Lady of Mercedes (Dominican Republic)
- X** 09 24 99 99 00 Republic Day (Trinidad, Tobago)
- X** 09 25 99 99 00 Army Day (Mozambique)
- X** 09 25 99 99 00 Referendum Day (Rwanda)
- X** 09 26 99 99 00 National Day (Maldives, Yemen Democratic Republic)
- X** 09 26 99 99 00 Revolution Anniversary Day (Yemen Arab Republic)
- X** 09 27 99 99 00 Feast of Finding the True Cross (Ethiopia)
- X** 09 28 99 99 00 Confucious' Day (Taiwan)
- X** 09 29 99 99 00 Battle of Boqueron (Paraquay)
- X** 09 30 99 99 00 Botswanna Day (Botswanna)
- X** 10 Mo 99 99 00 [1] Labor Day (Australia)
- X** 10 01 99 99 00 Armed Forces Day (South Korea)
- X** 10 01 99 99 00 Independence Day (Nigeria)
- X** 10 01 99 99 00 National Liberation Day (2 days) (China)
- X** 10 01 99 99 00 Public Holiday (Botswanna)
- X** 10 02 99 99 00 Anniversary of Guinean Independence (Guinea)
- X** 10 02 99 99 00 National Day (People's Republic of China)
- X** 10 03 99 99 00 Chung Yeung Festival (Hong Kong)
- X** 10 03 99 99 00 Francisco Morazan's Birthday (Honduras)
- X** 10 03 99 99 00 National Foundation Day (South Korea)
- X** 10 03 99 99 00 U.N. Day (Barbados)
- X** 10 04 99 99 00 Independence Day (Lesotho)
- X** 10 05 99 99 00 Anniversary of Proclamation of the Republic (Portugal)
- X** 10 06 99 99 00 National Sports Day (Lesotho)
- X** 10 07 99 99 00 National Heroes Day (Jamaica)
- X** 10 08 99 99 00 Battle of Agamos (Peru)
- X** 10 08 99 99 00 Constitution Day (U.S.S.R.)
- X** 10 08 99 99 00 Fiji Day (Fiji)
- X** 10 09 99 99 00 Independence Day (Uganda)
- X** 10 09 99 99 00 Independence of Guayaquil (Ecuador)
- X** 10 09 99 99 00 Korean Alphabet Day (South Korea)
- X** 10 09 99 99 00 Republic Day (Khmer Republic)
- X** 10 10 99 99 00 Beginning of Wars for Independence (Cuba)
- X** 10 10 99 99 00 Fiji Day (Fiji)
- X** 10 10 99 99 00 Foundation of Workers Party (North Korea)
- X** 10 10 99 99 00 Health-Sports Day (Japan)
- X** 10 10 99 99 00 National Day (Taiwan)
- X** 10 11 99 99 00 Day of the Revolution (Panama)
- X** 10 11 99 99 00 Druger Day (South Africa)
- X** 10 12 99 99 00 Day of the Race (Argentina)
- X** 10 12 99 99 00 Discovery Day (Gahamas)
- X** 10 12 99 99 00 National Day (Equatorial Guinea, Spain)
- X** 10 12 99 99 00 Our Lady Aparecida Day (Brazil)
- X** 10 12 99 99 00 Pan American Day (Belize)
- X** 10 14 99 99 00 National Day (Yemen Arab Republic)
- X** 10 14 99 99 00 Young People's Day (Zaire)
- X** 10 15 99 99 00 Evacuation Day (Tunisia)
- X** 10 17 99 99 00 Anniversary of Dessaline's Death (Haiti)
- X** 10 17 99 99 00 Heroes Day (Jamaica)
- X** 10 17 99 99 00 Kanname Sai, God's Tasting Ceremony, a Harvest Festival (Japan)
- X** 10 17 99 99 00 Mother's Day (Malawi)
- X** 10 20 99 99 00 Anniversary of 1944 Revolution (Guatemala)
- X** 10 20 99 99 00 Kenyatta Day (Kenya)
- X** 10 21 99 99 00 Armed Forces Day (Honduras)
- X** 10 21 99 99 00 Revolution Days (2 days) (Somalia)
- X** 10 23 99 99 00 Chulalongkron's Day (Thailand)
- X** 10 24 99 99 00 Independence Day (Zambia)
- X** 10 25 99 99 00 Labor Day (New Zealand)
- X** 10 25 99 99 00 Taiwan Restoration Day (Taiwan)
- X** 10 26 99 99 00 Agam Day (Nauru)
- X** 10 26 99 99 00 Armed Forces Day (Benin, Rwanda)
- X** 10 26 99 99 00 National Day (Austria)
- X** 10 28 99 99 00 Bank Holiday (Republic of Ireland)
- X** 10 28 99 99 00 National Holiday (Greece)
- X** 10 28 99 99 00 OHI Day (Cyprus)
- X** 10 29 99 99 00 Republic Day (Turkey)
- X** 11 01 99 00 00 Allerheiligen (Germany)
- X** 11 02 99 99 00 Memorial Day (Ecuador)
- X** 11 03 99 99 00 Meiji Setsu, Birthday of Meiji Tenno, 1864, "Unifier of the Nation" (Japan)
- X** 11 03 99 99 00 Independence from Columbia (Panama)
- X** 11 03 99 99 00 Independence of Cuenca (Ecuador)
- X** 11 03 99 99 00 Thanksgiving Day (Liberia)
- X** 11 04 99 99 00 Flag Day (Panama)
- X** 11 05 99 99 00 Guy Fawke's Day (U.K., commemorates the Gunpowder Plot of 1605)
- X** 11 06 99 99 00 Anniversary of October Socialist Revolution (2 days, U.S.S.R.)
- X** 11 06 99 99 00 Green March Day (Morocco)
- X** 11 06 99 99 00 Prophet Mohammed's Birthday (Malaysia)
- X** 11 07 99 99 00 Anniversary of Great October Revolution (Bulgaria)
- X** 11 07 99 99 00 October Revolution Day (Hungary)
- X** 11 08 99 99 00 Her Majesty, the Queen's Birthday (Nepal)
- X** 11 10 99 99 00 King's Birthday (Bhutan)
- X** 11 11 99 99 00 Independence Day (Angola)
- X** 11 11 99 99 00 Independence of Cartagena (Colombia)
- X** 11 11 99 99 00 Republic Day (Maldives)
- X** 11 12 99 99 00 Dr. Sun Yat-sen's Birthday (Taiwan)
- X** 11 12 99 99 00 Prince Charles' Birthday (Fiji)
- X** 11 14 99 99 00 King Hussein's Birthday (Jordan)
- X** 11 15 99 99 00 Dynasty Day (Belgium)
- X** 11 15 99 99 00 Proclamation of the Republic (Brazil)
- X** 11 15 99 99 00 Thatlouang Festival (Laos)
- X** 11 17 99 99 00 Army Day (Zaire)
- X** 11 17 99 99 00 Corrective Movement (Syrian Arab Republic)
- X** 11 18 99 99 00 Battle of Viertieres (Haiti)
- X** 11 18 99 99 00 Independence Day (Morocco)
- X** 11 18 99 99 00 National Days (4 days) (Oman)
- X** 11 19 99 99 00 Anniversary of 1968 Coup by Army (Mali)
- X** 11 19 99 99 00 Feast Day of S.A.S. Prince Rainier (Monaco)
- X** 11 19 99 99 00 Garifuna Settlement (Belize)
- X** 11 19 99 99 00 Prince of Wales Birthday (Fiji)
- X** 11 20 99 99 00 Revolution Day (Mexico)
- X** 11 21 99 99 00 Day of Prayer & Repentance (Federal Republic of Germany)
- X** 11 22 99 99 00 Anniversary of Portuguese Aggression (Guinea)
- X** 11 22 99 99 00 Independence Day (Lebanon)
- X** 11 23 99 99 00 Niiname Sai, Tasting New Rice Ceremony, a Thanksgiving Day (Japan)
- X** 11 24 99 99 00 Anniversary of the New Regime (Zaire)
- X** 11 25 99 99 00 Independence Day (Suriname)
- X** 11 28 99 99 00 Independence Day (Albania, Mauritania)
- X** 11 28 99 99 00 Independence from Spain (Panama)
- X** 11 28 99 99 00 Proclamation of the Republic (Chad)
- X** 11 29 99 99 00 Day of the Republic (2 days, Yugoslavia)
- X** 11 29 99 99 00 Goodwill Day (Liberia)
- X** 11 29 99 99 00 Liberation Day (Albania)
- X** 11 29 99 99 00 National Day (Burma)
- X** 11 30 99 99 00 Independence Day (Barbados, Yemen Democratic Republic)
- X** 11 30 99 99 00 National Day (Benin)
- X** 11 30 99 99 00 National Heroes Day (Philippines)
- X** 12 01 99 99 00 Anniversary of Restoration of Independence (Portugal)
- X** 12 01 99 99 00 Independence Day (Central African Republic)
- X** 12 02 99 99 00 National Holiday (United Arab Emirates)
- X** 12 03 99 99 00 National Holiday (Laos)
- X** 12 05 99 99 00 Nikolaustag (Germany)
- X** 12 06 99 99 00 Independence Day (Finland)
- X** 12 07 99 99 00 Independence Day (Ivory Coast, Panama)
- X** 12 07 99 99 00 Prophet Mohammed's Birthday (Fiji)
- X** 12 08 99 99 00 Blessing of the Water (Uruguay)
- X** 12 08 99 99 00 Mother's Day (Panama)
- X** 12 08 99 99 00 Our Lady of the Cacupe (Paraguay)
- X** 12 09 99 99 00 Independence Day (Tanzania)
- X** 12 10 99 99 00 Foundation of Worker's Party (Angola)
- X** 12 10 99 99 00 Human Rights Day (United Nations)
- X** 12 10 99 99 00 Thai Constitution Day (Thailand)
- X** 12 11 99 99 00 Independence Day (Upper Volta)
- X** 12 12 99 99 00 Fiesta of anniversary of the Miracle of Guadalupe (Guadalupe)
- X** 12 12 99 99 00 Independence Day (Kenya)
- X** 12 13 99 99 00 Republic Day (Malta)
- X** 12 15 99 99 00 Statue Day (Netherlands Antilles)
- X** 12 16 99 99 00 Constitution Day (Nepal)
- X** 12 16 99 99 00 Day of the Covenant (South Africa)
- X** 12 16 99 99 00 National Day (Bahrain)
- X** 12 16 99 99 00 Victory Day (Bangladesh)
- X** 12 17 99 99 00 National Day (Bhutan)
- X** 12 18 99 99 00 Republic Day (Niger)
- X** 12 23 99 99 00 Victory Day (Egypt)
- X** 12 25 99 99 00 Children's Day (Congo)
- X** 12 25 99 99 00 Constitution Day (Taiwan)
- X** 12 25 99 99 00 Taisho Tenno Sai, Commemoration of the Demise of the Late Emperor (Japan)
- X** 12 25 99 99 00 Birthday of Quaid-i-Azam (Pakistan)
- X** 12 25 99 00 00 1. Weihnachtsfeiertag (Germany)
- X** 12 26 99 99 00 Boxing Day (U.K.)
- X** 12 26 99 99 00 Family Day (South Africa)
- X** 12 26 99 99 00 Feast of Our Theotokos (Greece)
- X** 12 25 99 00 00 2. Weihnachtsfeiertag (Germany)
- X** 12 27 99 99 00 Bank Holiday (Cayman Islands)
- X** 12 27 99 99 00 Constitution Day (North Korea)
- X** 12 27 99 99 00 Public Holiday (Lesotho, Zimbabwe)
- X** 12 29 99 99 00 Civic Holidays (3 days) (Costa Rica)
- X** 12 29 99 99 00 His Majesty, the King's Birthday (Nepal)
- X** 12 30 99 99 00 Anniversary of Democratic Republic of Madagascar (Madagascar)
- X** 12 31 99 99 00 Bank Holiday (El Salvador, Honduras, Pakistan)
- X** 12 31 99 99 00 Feed Yourself Day (Benin)
- X** 12 31 99 99 00 Proclamation of the Republic (Congo)
- X** 12 31 99 99 00 St. Sylvester (Switzerland)
- END_OF_FILE
- if test 27588 -ne `wc -c <'dates/world'`; then
- echo shar: \"'dates/world'\" unpacked with wrong size!
- fi
- # end of 'dates/world'
- fi
- if test -f 'mt2ct.c' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'mt2ct.c'\"
- else
- echo shar: Extracting \"'mt2ct.c'\" \(3351 characters\)
- sed "s/^X//" >'mt2ct.c' <<'END_OF_FILE'
- X/*
- X * $Header: mt2ct.c,v 2.3 91/02/01 12:20:25 billr Exp $
- X */
- X/*
- X * mt2ct - convert monthtool reminder files to calentool style files
- X *
- X * Author: Bill Randle, Tektronix, Inc. <billr@saab.CNA.TEK.COM>
- X *
- X * Copyright (C) 1989, 1991 Tektronix, Inc. All Rights Reserved
- X *
- X * Permission is hereby granted to use and modify this code in source
- X * or binary form as long as it is not sold for profit and this copyright
- X * notice remains intact.
- X */
- X
- X#include "ct.h"
- X#include <stdio.h>
- X#include <ctype.h>
- X
- Xstruct appt_entry appts;
- Xstruct appt_entry *aptr;
- Xchar filename[128], *file;
- XFILE *fp;
- X
- Xextern char *getenv();
- X
- Xmain(argc, argv)
- Xint argc;
- Xchar *argv[];
- X{
- X if (argc > 1)
- X file = argv[1];
- X else {
- X strcpy(filename, getenv("HOME"));
- X strcat(filename, "/.monthtool");
- X file = filename;
- X }
- X
- X if ((fp = fopen(file, "r")) == NULL) {
- X fprintf(stderr, "can't open monthtool file <%s> for reading\n", file);
- X exit(1);
- X }
- X if (!read_mt_file()) {
- X fprintf(stderr, "no reminders read from %s\n", file);
- X exit(1);
- X }
- X fclose(fp);
- X strcpy(filename, getenv("HOME"));
- X strcat(filename, "/.appointments");
- X if ((fp = fopen(filename, "w")) == NULL) {
- X fprintf(stderr, "can't open .appointments file for writing\n");
- X exit(1);
- X }
- X write_ct_file();
- X}
- X
- X/*
- X * read in the monthtool file, filling the appts records
- X */
- Xint
- Xread_mt_file()
- X{
- X char *ptr, *fgets();
- X char buf[512];
- X struct appt_entry *optr;
- X
- X aptr = &appts;
- X while (fgets(buf, 512, fp) != NULL) {
- X aptr->flags = aptr->repeat = aptr->lookahead = 0;
- X aptr->warn = 10; /* default */
- X aptr->sindex = 0;
- X aptr->next = NULL;
- X ptr = buf;
- X while (isspace(*ptr))
- X ++ptr;
- X aptr->month = *ptr++ - '0';
- X if (isdigit(*ptr))
- X aptr->month = aptr->month * 10 + (*ptr++ - '0');
- X ++ptr; /* skip ',' */
- X aptr->day = *ptr++ - '0';
- X if (isdigit(*ptr))
- X aptr->day = aptr->day * 10 + (*ptr++ - '0');
- X ++ptr; /* skip ',' */
- X aptr->year = 0;
- X while (isdigit(*ptr))
- X aptr->year = aptr->year * 10 + (*ptr++ - '0');
- X if (aptr->year > 1900)
- X aptr->year -= 1900;
- X ++ptr; /* skip ',' */
- X if (!strncmp(ptr, " ", 4)) {
- X aptr->flags |= A_NOTE;
- X ptr += 5;
- X } else {
- X aptr->hour = (*ptr++ - '0') * 10;
- X aptr->hour += *ptr++ - '0';
- X aptr->minute = (*ptr++ - '0') * 10;
- X aptr->minute += *ptr++ - '0';
- X if (aptr->minute < 15)
- X aptr->minute = 0;
- X else if (aptr->minute < 45)
- X aptr->minute = 30;
- X else {
- X aptr->minute = 0;
- X aptr->hour++;
- X }
- X ++ptr; /* skip ',' */
- X }
- X strcpy(aptr->str, ptr);
- X if (aptr->year == 0)
- X aptr->flags |= ALL_YEARS;
- X if (aptr->month == 0)
- X aptr->flags |= ALL_MONTHS;
- X else if (aptr->month == 99) {
- X /* weekly reminder */
- X aptr->flags |= ALL_MONTHS;
- X aptr->flags |= Setday(aptr->day-1);
- X } else
- X --aptr->month;
- X if (aptr->day == 0)
- X aptr->flags |= ALL_DAYS;
- X aptr->next = (struct appt_entry *)malloc(sizeof(struct appt_entry));
- X if (aptr->next == NULL) {
- X fprintf(stderr, "out of memory\n");
- X return;
- X }
- X optr = aptr;
- X aptr = aptr->next;
- X }
- X if (aptr == &appts)
- X return(0); /* nothing read */
- X /* don't need the last one */
- X free(aptr);
- X optr->next = NULL;
- X return(1);
- X}
- X
- X/*
- X * write out the new .appointments file
- X */
- Xwrite_ct_file()
- X{
- X aptr = &appts;
- X fputs(HEADER, fp);
- X while (aptr) {
- X if (put_aentry(fp, aptr)) {
- X fprintf(stderr, "error writing .appointments file\n");
- X return;
- X }
- X aptr = aptr->next;
- X }
- X}
- END_OF_FILE
- if test 3351 -ne `wc -c <'mt2ct.c'`; then
- echo shar: \"'mt2ct.c'\" unpacked with wrong size!
- fi
- # end of 'mt2ct.c'
- fi
- if test -f 'put_aentry.c' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'put_aentry.c'\"
- else
- echo shar: Extracting \"'put_aentry.c'\" \(3441 characters\)
- sed "s/^X//" >'put_aentry.c' <<'END_OF_FILE'
- X/*
- X * $Header: put_aentry.c,v 2.3 91/02/01 12:20:45 billr Exp $
- X */
- X/*
- X * put_aentry - write calentool style files
- X *
- X * Author: Bill Randle, Tektronix, Inc. <billr@saab.CNA.TEK.COM>
- X *
- X * Copyright (C) 1989, 1991 Tektronix, Inc. All Rights Reserved
- X *
- X * Permission is hereby granted to use and modify this code in source
- X * or binary form as long as it is not sold for profit and this copyright
- X * notice remains intact.
- X */
- X
- X#include "ct.h"
- X#include <stdio.h>
- X#include <ctype.h>
- X
- X/*
- X * put entry into appointments file
- X */
- Xint
- Xput_aentry(apts_file, appt)
- XFILE *apts_file;
- Xstruct appt_entry *appt;
- X{
- X char *to_str();
- X char inbuf[512];
- X int one_based = 1;
- X
- X if (appt->flags & READONLY)
- X /* don't copy include file entries */
- X /* (the include directive is copied as a comment) */
- X return(0);
- X if (appt->flags & A_COMMENT) {
- X fputs(inbuf, apts_file);
- X return(ferror(apts_file));
- X }
- X if (appt->flags & ALL_YEARS)
- X fputs("** ", apts_file);
- X else if (appt->year > 99)
- X fprintf(apts_file, "%03d ", appt->year);
- X else
- X fprintf(apts_file, "%02d ", appt->year);
- X if (appt->flags & ALL_MONTHS)
- X fputs("** ", apts_file);
- X else
- X fprintf(apts_file, "%02d ", one_based ? appt->month+1 : appt->month);
- X if (appt->flags & ALL_DAYS)
- X fputs("** ", apts_file);
- X else if (appt->flags & EVERY_SOMEDAY) {
- X switch (appt->flags & EVERY_SOMEDAY) {
- X case EVERY_SUN:
- X fputs("Su ", apts_file);
- X break;
- X case EVERY_MON:
- X fputs("Mo ", apts_file);
- X break;
- X case EVERY_TUE:
- X fputs("Tu ", apts_file);
- X break;
- X case EVERY_WED:
- X fputs("We ", apts_file);
- X break;
- X case EVERY_THU:
- X fputs("Th ", apts_file);
- X break;
- X case EVERY_FRI:
- X fputs("Fr ", apts_file);
- X break;
- X case EVERY_SAT:
- X fputs("Sa ", apts_file);
- X break;
- X }
- X } else if (appt->flags & EVERY_MON_FRI) {
- X fputs("MF ", apts_file);
- X } else
- X fprintf(apts_file, "%02d ", one_based ? appt->day : appt->day-1);
- X if (appt->flags & A_NOTE) {
- X appt->hour = 99;
- X appt->minute = 0; /* assume unmarked note */
- X }
- X if ((appt->flags & MARKED_NOTE) == MARKED_NOTE)
- X appt->minute = 99;
- X if (!(appt->flags & (ALL_DAYS|DELETED)) && appt->flags & REPEAT) {
- X if (appt->flags & EVERY_SOMEDAY)
- X fprintf(apts_file, "%02d %02d %02d %s ", appt->hour, appt->minute, appt->arrows, to_str(appt->repeat));
- X else
- X fprintf(apts_file, "%02d %02d %02d [%d] ", appt->hour, appt->minute, appt->arrows, appt->repeat);
- X } else
- X fprintf(apts_file, "%02d %02d %02d ", appt->hour, appt->minute, appt->arrows);
- X
- X if (appt->flags & LOOKAHEAD)
- X fprintf(apts_file, "<%d> ", appt->lookahead);
- X if (appt->flags & RUN)
- X fprintf(apts_file, "+%d ", appt->runlength);
- X if (appt->warn != 10)
- X fprintf(apts_file, "%%%d ", appt->warn);
- X if (appt->flags & DELETED)
- X fputs("# ", apts_file);
- X if (isalnum(*(appt->str)))
- X fprintf(apts_file, "%s", appt->str);
- X else
- X fprintf(apts_file, "\\%s", appt->str);
- X
- X /* check for failure (e.g. file system full) */
- X return(ferror(apts_file));
- X}
- X
- Xchar rptstr[10];
- X
- X/* convert repeat bit map to printable string */
- Xchar *
- Xto_str(repeat)
- Xint repeat;
- X{
- X int i, j = 0;
- X
- X if (repeat == ALL_WEEKS)
- X /* if it's every week, then don't write [] spec */
- X rptstr[0] = '\0';
- X else {
- X rptstr[j++] = '[';
- X for (i=0; i<5; i++) {
- X if (repeat & (0x1<<i)) {
- X rptstr[j++] = i+1 + '0';
- X rptstr[j++] = ',';
- X }
- X }
- X if (repeat & LAST_WEEK) {
- X rptstr[j++] = 'L';
- X rptstr[j++] = ',';
- X }
- X rptstr[j] = '\0';
- X rptstr[--j] = ']';
- X }
- X return (rptstr);
- X}
- END_OF_FILE
- if test 3441 -ne `wc -c <'put_aentry.c'`; then
- echo shar: \"'put_aentry.c'\" unpacked with wrong size!
- fi
- # end of 'put_aentry.c'
- fi
- if test -f 'sunny.icon' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'sunny.icon'\"
- else
- echo shar: Extracting \"'sunny.icon'\" \(2593 characters\)
- sed "s/^X//" >'sunny.icon' <<'END_OF_FILE'
- X/* Format_version=1, Width=64, Height=64, Depth=1, Valid_bits_per_item=16
- X *
- X * $Header: sunny.icon,v 2.1 89/05/09 14:30:58 billr Exp $
- X * Copyright (C) 1989, The Regents of the University of California
- X * All rights Reserved
- X * Author: R. P. C. Rodgers, M.D.
- X *
- X * Redistribution and use in source and binary forms are permitted
- X * provided that this notice is preserved and that due credit is given
- X * to the University of California at San Francisco. The name of the University
- X * may not be used to endorse or promote products derived from this
- X * software without specific prior written permission. This software
- X * is provided ``as is'' without express or implied warranty.
- X */
- X 0xFFFF,0xFFFF,0xFFFF,0xFFFF,0x8001,0x0000,0x8800,0x0041,
- X 0x8840,0x9020,0x8844,0x0881,0x8840,0x9120,0x8848,0x0881,
- X 0x8420,0x4924,0x8848,0x1101,0x8220,0x4924,0x8A88,0x1101,
- X 0x8210,0x4914,0x9290,0x2205,0x8111,0x2494,0x9290,0x2209,
- X 0x8089,0x2494,0x9292,0x4409,0x8044,0x9494,0x9512,0x4811,
- X 0xA044,0x9294,0x9524,0x8821,0x9222,0x5252,0x9524,0x9041,
- X 0x8912,0x4A52,0x9529,0x1241,0x8491,0x2A4A,0x9549,0x2489,
- X 0x8289,0x255F,0xFE4A,0x4511,0xA244,0x95EA,0x83D2,0x4A21,
- X 0x9124,0x5720,0x02B4,0x9241,0x8892,0x7A00,0x000E,0x9481,
- X 0x8449,0x6800,0x0009,0x2881,0x8225,0xA000,0x0001,0xD101,
- X 0x8116,0x8000,0x0000,0xA221,0x808E,0x0000,0x0000,0x3443,
- X 0x846C,0x0000,0x0000,0x088D,0xE210,0x01E0,0x03C0,0x1511,
- X 0x91A8,0x8610,0x0430,0x8221,0x8C40,0x7808,0x000F,0x01C1,
- X 0x82A0,0x00C4,0x0980,0x0185,0xE180,0x01E4,0x0BE0,0x0059,
- X 0x9940,0x07E4,0x0BF0,0x0061,0x8600,0x0000,0x0800,0x0027,
- X 0xE504,0x07C0,0x09F8,0x0119,0x9C21,0x0000,0x0400,0x0431,
- X 0x8604,0x0000,0x0200,0x0093,0x8810,0x8028,0x0900,0x120D,
- X 0xC944,0x8028,0x0900,0x14A9,0xBC22,0x8028,0x0900,0x1005,
- X 0x9000,0x8018,0x0A00,0x114F,0x90C9,0x0004,0x3000,0x1805,
- X 0xF003,0xC003,0xC000,0x6605,0xA828,0x3000,0x0003,0x807F,
- X 0xA000,0x0E00,0x000C,0x01EB,0xA7E0,0x01E0,0x00F0,0x0355,
- X 0xBEBC,0x001F,0xFF00,0x06AB,0xD5D7,0x8000,0x0000,0x0D55,
- X 0xAAAA,0xE000,0x0000,0x1BAB,0xD555,0x5800,0x0700,0x355D,
- X 0xAEAA,0xAE00,0xF800,0x6AAB,0xD555,0x7500,0x0000,0xD55D,
- X 0xAAAB,0xAAC0,0x0001,0xAAAB,0xD555,0x5570,0x0003,0x5555,
- X 0xBAAB,0xAAA8,0x0006,0xAABB,0xD577,0xD554,0x000D,0x5755,
- X 0xAAAA,0xAAAA,0x001A,0xEAAB,0xD755,0x5D55,0x0075,0x5755,
- X 0xABAA,0xAAEA,0xE1EB,0xAFAB,0xD755,0x5555,0x5F55,0x5555,
- X 0xAFAB,0xAAEA,0xBAAA,0xAAAB,0xD7D5,0x5557,0x5755,0x5555,
- X 0xAFAA,0xAAAA,0xABEA,0xABAB,0xDFD5,0x5555,0x555D,0x555D,
- X 0xAAAA,0xAEAE,0xBABB,0xAAAB,0xD555,0x5555,0x5557,0x755D,
- X 0xAAAA,0xAEAA,0xAAAA,0xAABF,0xFFFF,0xFFFF,0xFFFF,0xFFFF
- END_OF_FILE
- if test 2593 -ne `wc -c <'sunny.icon'`; then
- echo shar: \"'sunny.icon'\" unpacked with wrong size!
- fi
- # end of 'sunny.icon'
- fi
- if test -f 'wevent.c' -a "${1}" != "-c" ; then
- echo shar: Will not clobber existing file \"'wevent.c'\"
- else
- echo shar: Extracting \"'wevent.c'\" \(3912 characters\)
- sed "s/^X//" >'wevent.c' <<'END_OF_FILE'
- X/*
- X * $Header: wevent.c,v 2.3 91/02/01 12:21:14 billr Exp $
- X */
- X/*
- X * wevent.c
- X *
- X * Author: Philip Heller, Sun Microsystems. Inc. <terrapin!heller@sun.com>
- X *
- X * Original source Copyright (C) 1987, Sun Microsystems, Inc.
- X * All Rights Reserved
- X * Permission is hereby granted to use and modify this program in source
- X * or binary form as long as it is not sold for profit and this copyright
- X * notice remains intact.
- X *
- X *
- X * Changes/additions by: Bill Randle, Tektronix, Inc. <billr@saab.CNA.TEK.COM>
- X *
- X * Changes and additions Copyright (C) 1988, 1989, 1991 Tektronix, Inc.
- X * All Rights Reserved
- X * Permission is hereby granted to use and modify the modifications in source
- X * or binary form as long as they are not sold for profit and this copyright
- X * notice remains intact.
- X */
- X/********************************************************
- X * *
- X * Week event routines for main subwindow. *
- X * *
- X ********************************************************/
- X
- X
- X#include <stdio.h>
- X#include <suntool/sunview.h>
- X#include <suntool/canvas.h>
- X#include <suntool/panel.h>
- X#include "ct.h"
- X#include "event.h"
- X
- Xextern Frame prompt_frame;
- Xextern int monday_first;
- Xextern int n_slots;
- X
- Xweek_inputevent(canvas, event)
- XCanvas canvas;
- XEvent *event;
- X{
- X int i = -1;
- X int x, y;
- X static int day_chosen_from_week;
- X extern void fix_current_day();
- X
- X /* translate coordinates to pixwin space */
- X event = canvas_window_event(canvas, event);
- X if (event_id(event) != MS_LEFT) /* Ignore kbd events. */
- X return;
- X
- X if (event_is_down(event)) { /* Button down. */
- X day_chosen_from_week = -1;
- X for (i=0; i<nr_weekdays; i++) {
- X x = event_x(event);
- X y = event_y(event);
- X if (x >= week_boxes[i].wday_pos.left && x <= week_boxes[i].wday_pos.right &&
- X y >= week_boxes[i].wday_pos.top && y <= week_boxes[i].wday_pos.bottom) {
- X day_chosen_from_week = i;
- X pw_write(main_pixwin, week_boxes[i].wday_pos.left+1,
- X week_boxes[i].wday_pos.top+1, weekslot_width-2,
- X (weekslot_height)*n_slots-2, PIX_NOT(PIX_DST), NULL,0,0);
- X return;
- X }
- X /* is cursor inside a "more" button ? */
- X if (x>=week_boxes[i].moreb_pos.left && x<=week_boxes[i].moreb_pos.right &&
- X y>=week_boxes[i].moreb_pos.top && y<=week_boxes[i].moreb_pos.bottom) {
- X if (week_boxes[i].more) {
- X /* "more" button is active */
- X day_chosen_from_week = i+10;
- X return;
- X }
- X }
- X }
- X return; /* Mouse wasn't in any square. */
- X } else { /* Button up. */
- X if (day_chosen_from_week == -1)
- X return;
- X if (day_chosen_from_week >= 10) {
- X /* more button selected */
- X /* print info message */
- X do_more_msg(day_chosen_from_week-10);
- X return;
- X }
- X current.tm_mday -= current.tm_wday;
- X if (monday_first) {
- X if (current.tm_wday == SUN)
- X current.tm_mday -= 7;
- X if (nr_weekdays == 7)
- X current.tm_mday++;
- X }
- X current.tm_mday += day_chosen_from_week;
- X fix_current_day();
- X if (nr_weekdays < 7) {
- X current.tm_mday++;
- X fix_current_day();
- X }
- X mainsw_state = DISPLAYING_DAY;
- X window_set(canvas, WIN_CURSOR, day_cursor, 0);
- X draw_day();
- X }
- X}
- X
- X/* display more popup message */
- Xdo_more_msg(i)
- Xint i;
- X{
- X int width, height, left, bottom;
- X
- X /* get x,y position of canvas window on the screen so we
- X * can center this one in it.
- X */
- X create_prompt_frame("Select this day to view additional appointments.", FALSE);
- X width = (int) window_get(prompt_frame, WIN_WIDTH);
- X height = (int) window_get(prompt_frame, WIN_HEIGHT);
- X left = (week_boxes[i].wday_pos.right + week_boxes[i].wday_pos.left - width) / 2;
- X bottom = (week_boxes[i].wday_pos.top + week_boxes[i].wday_pos.bottom - height) / 2;
- X window_set(prompt_frame, WIN_X, left, WIN_Y, bottom, 0);
- X (void) window_loop(prompt_frame);
- X window_set(prompt_frame, WIN_SHOW, FALSE, 0);
- X}
- END_OF_FILE
- if test 3912 -ne `wc -c <'wevent.c'`; then
- echo shar: \"'wevent.c'\" unpacked with wrong size!
- fi
- # end of 'wevent.c'
- fi
- echo shar: End of archive 20 \(of 23\).
- cp /dev/null ark20isdone
- MISSING=""
- for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ; do
- if test ! -f ark${I}isdone ; then
- MISSING="${MISSING} ${I}"
- fi
- done
- if test "${MISSING}" = "" ; then
- echo You have unpacked all 23 archives.
- rm -f ark[1-9]isdone ark[1-9][0-9]isdone
- else
- echo You still need to unpack the following archives:
- echo " " ${MISSING}
- fi
- ## End of shell archive.
- exit 0
-
- exit 0 # Just in case...
- --
- Kent Landfield INTERNET: kent@sparky.IMD.Sterling.COM
- Sterling Software, IMD UUCP: uunet!sparky!kent
- Phone: (402) 291-8300 FAX: (402) 291-4362
- Please send comp.sources.misc-related mail to kent@uunet.uu.net.
-